﻿namespace System.ComponentModel.DataAnnotations;

[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public sealed class PrecisionAttribute: Attribute
{
    public int Precision { get; }
    public int? Scale { get; set; }
    public PrecisionAttribute(int precision)
    {
        Precision = precision;
    }
    public PrecisionAttribute(int precision, int scale)
    {
        Precision = precision;
        Scale = scale;
    }
}

